# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=breeze-icons
pkgver=5.73.0
pkgrel=0
pkgdesc="Breeze icon themes"
arch="noarch !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="LGPL-3.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev"
checkdepends="bash"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/breeze-icons-$pkgver.tar.xz
	busybox-grep-q.patch
	busybox-sed-i.patch
	"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBINARY_ICONS_RESOURCE=ON
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E '(dupe|symlink)'
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="aa135c1784dd30682887ff8c7d568b3f046d693401d69f72d4587902e36f1a8bb7ed2e6630d8aaf1aeabd01214814d860edf6f923e4983daf7aa0229ef6ba44f  breeze-icons-5.73.0.tar.xz
5fbfe9c5bf0a01504274040d97bb3c58ae18580f9ab63ea5701149c508fccb02f6566435b355264008731a7778939f08c5de1820a24b521386e19248ae82ff96  busybox-grep-q.patch
146ea6635feaf05541ca82839fd315dfa10cb6daaf364cbe79f324451617d53f405c52fe5ed5a2abfe6d3e01109795afc3a385dce78b0cb0f78702d1b434a250  busybox-sed-i.patch"
